Repository navigation
Feature: Dashboard latency check - #3746
Merged
Merged
Conversation
…t (L1) Samples of a ping target with the state (ok, lost ping in the time window, failed), min / avg / max / packet loss and the removal of samples older than the time window. Unit tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…et (L2) Dashboard_ShowInternetLatencyWidget (shown), Dashboard_CheckInternetLatency (off, opt-in), Dashboard_InternetLatencyInterval (2 s) and three targets (name + host): Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 9.9.9.9. Time window of the chart / statistics 60 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Up to three targets side by side: status dot, name, round-trip time of the last ping and a chart of the last 60 seconds (gaps for lost pings). Each target is resolved once (DNS settings of the application) and pinged in its own loop (timeout 2 s, then the interval). Tooltip with host, IP address, min / avg / max and packet loss of the last minute; context menu opens the host in the Ping Monitor, Traceroute or DNS Lookup. Disabled check: text + Enable button; no targets: empty state. Sample values in the screenshot mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion (L4) The dashboard shows the widget below the network connection and pings only while the widget is shown and enabled, the dashboard is the selected application and the main window is shown: it stops when switching to another tool or the settings, when the window is minimized or hidden to the tray (new OnMainWindowHidden) and when the widget is hidden or disabled, and starts again when shown. A network change resolves the targets again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New section on Settings > Dashboard between the network connection and the speed test (order of the dashboard): Show widget, Check internet latency (disabled while the widget is hidden), interval in seconds (1-10) and three targets with name and host (validated like the Ping Monitor input, empty: not shown). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Widget section (targets, when it pings, status dots, chart, tooltip, context menu), settings (Show widget, Check internet latency, interval, targets with the defaults), troubleshooting (ICMP blocked) and the changelog entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t (L3) The context menu resource is not shared between the tiles and binds to the target of its tile explicitly (a shared ContextMenu can keep the DataContext of the first tile). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he other when narrow (M1) Each target is one line: status dot, name, value right after the name and the chart (24 px high) next to it, so it's clear which value belongs to which target. Wide (own row): the targets side by side with a divider between them; narrow (< 500 px, e.g. next to the speed test): one below the other, names and values aligned. Lower than the tiles with the chart below. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… own row (M2) New setting Position (Settings > Dashboard > Internet latency): next to the speed test (default, right, 1/3 of the width, the targets one below the other) or own row below the network connection. The speed test and the internet latency share a row of the dashboard; if the dashboard is narrower than 900 px (the speed test needs about 600 px) or the speed test is hidden, the internet latency gets its own row below the speed test. The layout is only arranged again when the width crosses the threshold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er in a narrow window (M3) The IP API row uses the same layout as the speed test / internet latency row: side by side (2/3 + 1/3) only if the dashboard is at least 900 px wide, otherwise one below the other with the full width (the DNS resolver was too narrow for its header, open item of the IP API review). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eed (M4) Instead of one threshold of 900 px, each widget has the width it needs next to another one (speed test 600, internet latency 280, IP geolocation 600, DNS resolver 400 for its header). A row is shown side by side only if the first widget fits into 2/3 and the second into 1/3: speed test / internet latency from about 905 px, IP geolocation / DNS resolver from about 1220 px. The layout is only arranged again when a row changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the targets one below the other (M5) The widget decided only by its own width (< 500 px) whether the targets are shown one below the other. In a maximized window 1/3 of the dashboard is wider, so next to the speed test the targets were shown side by side. The dashboard now tells the widget when it is next to the speed test; the width only decides in its own row (narrow window). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e of the other widgets (M6) The targets use the row layout of the network connection widget: height 26, gap 5 between the rows (one below the other), name in the normal text and the value bold (like the values of the network connection and the IP API widgets) instead of the large gray text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d or restored down (M7) Every window state change except minimize counted as "shown again": after the recheck interval (60 s) maximizing or restoring down the window checked the network connection, IP geolocation and DNS resolver again (loading animations, two ip-api.com requests). Only a restore from minimized (or from the tray, unchanged) shows the window again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ses (M8) When the pings continue (dashboard shown again, window restored), the pings of the last minute stay: the pause is a gap in the chart and doesn't count as lost pings, the last value stays until the next ping. Removed after a network change (also while the widget didn't run) and when the check is disabled. Before, every start removed the history, e.g. a lost ping that was looked into in the Ping Monitor for a few seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…error (N1, N4) A host name that could not be resolved (e.g. the DNS server of a new network not reachable yet right after a network change) is resolved again every 5 seconds instead of staying red until the next network change or the next time the dashboard is shown. The IP address of an earlier run is no longer shown next to the DNS error (tooltip, Copy all). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ping doesn't stop the loop (N2) The interval is clamped to the range of the settings (a value of 0 edited in the settings file pinged in a tight loop, a negative one stopped the target without a log entry). An unexpected exception of a ping is logged and shown as a failed ping, the loop goes on (the task is not awaited). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ray is still minimized (N5) Minimized to the tray, the window is still minimized when it is shown from the tray: the dashboard checked the outdated widgets (ip-api.com requests) before it was restored. It is checked when the window is restored (StateChanged, from minimized). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s / layout) How the dashboard widgets work for further widgets: look of a widget, Show / opt-in Check settings with the Enable button, when one-shot and live widgets check or run, the row layout (2/3 + 1/3 or stacked, minimum widths per widget, re-layout only when a row changes, widgets told about their place) and the steps for a new widget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pings, the time window and the chart axis used the local time: when the clock went back (end of daylight saving time, NTP correction), no ping was removed for up to an hour, the statistics / status covered the whole hour and the chart line jumped back. UTC doesn't change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, no old value next to them (O2, O3) An exception while resolving a host name (e.g. the DNS client is not configured) ended the target without a message; it is logged, shown like a failed lookup and retried. A failed lookup after a pause no longer shows the old latency next to the red dot, and after a successful lookup the dot follows the pings of the time window again (not red until the next ping). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a narrow window the internet latency is below the speed test (position "next to the speed test"), only the position "own row" puts it above. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The average of Copy all used Math.Round (halves to the even number, 8.5 -> 8 ms) and the tooltip F0 (8.5 -> 9 ms). Both use F0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… retried every 5 s (O6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The targets can also be in the own network (router, servers, air-gapped networks), so "internet latency" is too narrow. Widget, settings keys (Dashboard_*Latency*, unreleased: no migration), strings (the title uses the existing "Latency"), classes / files, docs anchors (#latency, #settings-latency), changelog and AGENTS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…en every minute (R2) A host name that can't be resolved is no longer queried every 5 seconds: the retry backs off to 5, 15, 30 and then 60 seconds (LatencyStatistics .GetRetryDelay, unit tests), so a broken DNS server isn't spammed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y (R3) The three fixed target fields are replaced by a list like the DNS servers of the DNS Lookup (Settings > Dashboard > Latency > Targets: Add..., edit / delete via context menu, F2 / Del or double-click, dialog with name, host and "Use default gateway"), up to 6 targets. Defaults: Cloudflare, Google, Quad9 (Dashboard_LatencyTargets, existing settings files get them). - Default gateway: like "[Windows DNS]" a target that is detected when the pings start (route to the public IPv4 address, then the gateway of the local address - NetworkInterface.DetectGatewayBasedOnRoutingAsync, the same detection as the network connection), follows a network change. No gateway: gray "No default gateway found ..." (information), detected again with the back-off. - A changed list keeps the pings of the unchanged targets (an edit only applies on Save; before, every key press in a target field restarted all targets, review finding O4). An edited target stays at its position. - Widget: up to 3 targets per line side by side, more in a second line; no targets: empty state with a Configure button (opens the settings). - Docs: target list, default gateway, new section "Internal and air-gapped networks"; changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rites the new run (CR1) The DNS lookup can't be canceled. If it failed (exception) after the run was stopped (network change, target list edited: Stop + Start), its catch set the error, IP address, value and status on the target that the new run already uses. The new run's pings never clear ErrorMessage, so the widget and Copy all showed "Could not resolve ..." for a target that answers. The cancellation is now checked before the error is set (for the failed result and the exception), like DetectGatewayAsync. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ress in screenshot mode (CR2) SetSamples set ResolvedIPAddress = Host, which is the localized "Gateway" for the gateway target, so the context menu (other tools, Copy) used that word as the host. It now uses ScreenshotData.RouterIPv4, like the network connection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s not added (CR3) EditLatencyTargetAction added the target if the edited one was not found, without the limit of Add (Dashboard_LatencyMaxTargets): a 7th entry that the widget ignores (Take). The edit is now dropped in that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The welcome dialog (Privacy) has a "Check latency" switch like the other dashboard checks, in the order of the dashboard (after Check public IP address), off by default (Dashboard_CheckLatency). Its help says what is pinged: the default gateway and the targets, by default Cloudflare, Google and Quad9 (HelpMessage_WelcomeCheckLatency). Docs and changelog updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gateway usually answers in 0 ms (Windows rounds down), shown as "0 ms". Like the other tools (Ping.TimeToString: Ping Monitor, IP Scanner, Traceroute) a time that rounds to 0 is now "<1 ms": the value, the tooltip (minimum / average / maximum) and Copy all. - LatencyStatistics.FormatTime: one formatting for the view model and the new LatencyTimeToStringConverter (tooltip, instead of StringFormat). - Halves are now really rounded up: "F0" rounds to the even number (an average of 8.5 ms was "8 ms", 0.5 ms "0 ms"), contrary to the comment of O7; the value is rounded with MidpointRounding.AwayFromZero first. - Unit tests for FormatTime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(R8)
--screenshot: the gateway (first line, Ping default gateway is on by default)
answers mostly below 1 ms ("<1 ms", average "<1 ms") with a few 1 ms
replies, like a router in the local network. Cloudflare, Google and Quad9
keep their sample latencies (9 / 8 / 10 ms): the index of the samples is the
position in the list, without the gateway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n earlier run (CR7) When the pings resumed after a pause (history kept) and the host name could not be resolved, the error and the red dot were shown, but the tooltip statistics, the chart and Copy all still had the pings of the earlier run (e.g. "Could not resolve ... - Minimum 9 ms, ..."). The error path now clears the history first (ClearHistory), as its comment intended. The same for the gateway: no gateway found, no values of the gateway of an earlier network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RunAsync is not awaited (the widget starts it per target). An exception other than a ping or lookup error (handled in the loop), e.g. from the chart, ended the loop unobserved: the target froze without a log entry. It is now logged; the target starts again with the next start of the pings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The widget section now lists what starts the pings with the name lookups (and the gateway detection): dashboard shown / switched back to, window restored, check enabled, widget shown; started again after a network change and when the targets or Ping default gateway change (applied when the dashboard is shown again, unchanged targets keep their values); a new interval applies from the next ping; nothing while the dashboard is hidden. A name that can't be resolved starts its values and chart again (CR7). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
More room for the privacy switches and their help icons (Check latency added, R6). Still fits the minimum window width of 800. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ow (R10) Replaces the fixed width (welcome 700 since R9, upgrade 650): both start dialogs are the same again, up to 750 (ChildWindowMaxWidth) and 85 % of the main window like the other large dialogs (ChildWindowSizeHelper, e.g. the profile dialog), so they keep a margin in the minimum window (800 -> 680) and follow a resize. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
This pull request is merged. |
… same width as the speed test (R11) Both rows use the same widths again (first widget 600, second 280) and switch together at about 905 px, so the speed test and the IP geolocation always have the same width when the window is resized (the DNS resolver row switched at about 1220 px). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New setting Ping public IP address (default enabled, also in the welcome dialog) next to Check public IP address: the public IPv4 / IPv6 address (default Cloudflare) is only pinged if enabled. The addresses are still used to detect the local IP address (route, nothing is sent). Without the ping, the API and Windows decide; with both disabled only the connectivity reported by Windows (IPv4: OK / no internet access, IPv6 not checked). The reasons of a failed check no longer mention a disabled ping or API. Help messages explain what is sent to whom, the default services and that they can be changed in the settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and settings (R13) Each help text says what is sent with every check, who receives it and the default service / URL (and that it can be changed in the settings): latency (welcome dialog, check, show widget incl. the welcome dialog), IP geolocation and DNS resolver. The welcome dialog has its own IP geolocation text, because the switch also enables it for the Traceroute. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…f the maintainer (R14) "Some features use third-party services. You can turn them off below. NETworkManager doesn't collect any data, nothing is sent to the developers." Shorter, true independent of who maintains the project, and "turn off" matches the switches (incl. the ping, which is not a service). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Privacy by design: the request to ipify.org sends the IP address to a web service, like the ip-api.com checks, which are opt-in. The ping of the public IP address stays enabled (one ICMP echo request per check, the internet check needs it) and the latency check stays opt-in (continuous pings). Only new installations: saved settings keep their value. AGENTS.md: the rule for privacy defaults of the dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… settings of the dashboard (R16) Settings > Status shows an info note pointing to Dashboard > Network connection. The note in the dashboard settings and the help of Show widget say that the status window still checks while the widget is hidden; the help of the ping and the public IP address mention the dashboard and the status window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…without a name (CR10) Copy all wrote "1.1.1.1 (1.1.1.1): ..." for a target without a name and "Gateway (Gateway, 192.168.1.1): ..." for the gateway. The host and the IP address are only added if they differ from the name: "1.1.1.1: ...", "Gateway (192.168.1.1): ...", "Cloudflare (1.1.1.1): ...". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
See commits
Related issue
#3609
Type of change